cmake_minimum_required(VERSION 3.5.1)
project(lds-test)

set(DLLIST_LIB ldllist)
set(BINTREE_LIB lbintree)
set(SORT_LIB lsort)

add_compile_options(-Wall)
add_compile_options(-std=c11)
add_compile_options(-g)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

option(BUILD_STATIC "静态链接" ON)

if(BUILD_STATIC)
	link_directories(/usr/local/lib/liblds/)
	message("BUILD_STATIC : ${BUILD_STATIC}")
else()
	link_directories(/usr/local/lib/${CMAKE_LIBRARY_ARCHITECTURE})
endif()


add_subdirectory(List)
add_subdirectory(Tree)
add_subdirectory(Sort)
